package main

import (
	"fmt"
	"github.com/antlr/antlr4/runtime/Go/antlr"
	"go-arch/antlr4/generated/hello"
)

// 生成go语言的文件的命令
// antlr4 -Dlanguage=Go Hello.g4

type HelloListener struct {
	*hello.BaseHelloListener
}

func newHelloListener() *HelloListener {
	return new(HelloListener)
}

func (h *HelloListener) EnterEveryRule(ctx antlr.ParserRuleContext) {
	fmt.Println(ctx)
}

func main() {

}
